
// 调用Flutter 层摄像头
function call() {
	const [actionName, ...args] = [...arguments];
	const params = { action:actionName, args };

	console.debug(`Flutter-bridge: Call:${JSON.stringify(params)}`);

	if (window.FlutterBridge && typeof window.FlutterBridge.postMessage === 'function') {
		// 调用Flutter侧的方法
		window.FlutterBridge.postMessage(JSON.stringify(params));
	} else {
		console.error('Flutter bridge is not available!');
	}
}
    
export default {
	call,
};